var windowName = "index";
var Page
apiready = function(){
    onWindowHide(function () {
    })
    console.log("index page is OK");
    Page = createVM("#Page",{
        //页面数据
        banner:[
            "https://s2.ax1x.com/2019/04/30/E8ES9f.jpg"
            ,"https://s2.ax1x.com/2019/04/30/E8E9gS.jpg"
        ],
        news:"信息加载中..."
},{
        //页面方法
        "init":function () {

        }
    })

    Page.init()

}
function updateWinData() {
    var news = getLocData("news")
    Page.news = news.text;
    Page.blocks = getLocData("blocks")
}
function getIndexDataAndCheckConfig() {

    //检查服务器数据状态
    apiGet("/app/get/config",{},function (res) {
        if (res.data.login === 1) {
            goto("login")
        }else {

        }

        logJson(res,"配置信息");
    })
}